<nz-table #basicTable [nzData]="dataSource" [nzTitle]="titleTemplate" nzShowPagination nzShowSizeChanger nzShowQuickJumper>
  <thead>
    <tr>
      <th *ngFor="let column of columns" [nzWidth]="column.width" [nzAlign]="column.fixed">{{column.title}}</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of basicTable.data, let i = index" >
      <td *ngFor="let column of columns">{{ data[column.dataIndex] }}</td>
      <td><ng-content select="[action]"></ng-content>{{i}}</td>
      <!-- <td>
        <ng-template> 
          <ng-content select="[action]"> </ng-content> 
        </ng-template> 
      </td> -->
    </tr>
  </tbody>
</nz-table>
<ng-template #titleTemplate>
  <div class="table-header">
    <span>用户列表</span>
    <button nz-button nzType="primary" class="add-btn">
      <i nz-icon nzType="plus"></i> 新增用户
    </button>
  </div>
</ng-template>
